//
//  AppDelegate.swift
//  WeiboMini
//
//  Created by gaoliang on 15/11/17.
//  Copyright © 2015年 gaoliang. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
       window = UIWindow(frame: (UIScreen.mainScreen().bounds))
        window?.rootViewController = MainViewController()
        setThreamColor()
        
        window?.makeKeyAndVisible()
        return true
    }

    private func setThreamColor() {
        UINavigationBar.appearance().tintColor = themeColor
        UITabBar.appearance().tintColor = themeColor
    }
}

